package cn.hinglo.gameclaw.client.action;

import cn.hinglo.gameclaw.admin.service.NoticeService;
import cn.hinglo.gameclaw.data.controller.BaseController;
import cn.hinglo.gameclaw.data.entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @createTime: 2018/3/6
 * @author: HingLo
 * @description: 通知中心管理
 */
@RestController
@RequestMapping("/client/nc/")
public class NoticeClientAction extends BaseController {
    private final NoticeService noticeService;

    @Autowired
    public NoticeClientAction(NoticeService noticeService) {
        this.noticeService = noticeService;
    }

    /**
     * 公告或者通知信息列表
     *
     * @return 操作结果
     */
    @GetMapping("list")
    public Result list() {
        return success(noticeService.findTypeService());
    }


}
